package com.igeek.javase.ch04.purchaseTest;

/*
 *@author wangpeng
 *2023/7/13 19:30
 *@description TODO
 */

public class GoodsTest {
    public static void main(String[] args) {
        //实例化对象
        Goods g1 = new Goods(001, 90);
        Goods g2 = new Goods(002, 95);
        Goods g3 = new Goods(003, 99);
        Order order = new Order(2023714001);
        //用户
        User alice = new User("alice", order);
        //下单
        alice.placeOrder(g1);
        alice.placeOrder(g2);
        alice.placeOrder(g3);
        alice.getOrder().detail();

    }
}

